<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${itemBank.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">对应证书：</label>
                            <div class="col-sm-8">
                                <input id="profileIdHidden" class="form-control"  type="hidden" th:value="${itemBank.profileId}" />
                                <select id="profileId" name="profileId" class="form-control">
                                    <option value="">请选择</option>
                                    <option th:each="item : ${certificateProfile}" th:selected="${itemBank.profileId eq item.id}"
                                            th:value="${item.id}" th:text="${item.name}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">知识点：</label>
                            <div class="col-sm-8">
                                <input id="kpointsIdHidden" class="form-control" type="hidden" th:value="${itemBank.kpointsId}" />
                                <select id="kpointsId" name="kpointsId" class="form-control">
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">适用等级：</label>
                            <input id="gradeHidden" class="form-control" type="hidden"  th:value="${itemBank.grade}" />
                            <div class="col-sm-8" id="know">
                                <label><input name="grade" type="checkbox" value="高级"/>高级</label>
                                <label><input name="grade" type="checkbox" value="中级"/>中级</label>
                                <label><input name="grade" type="checkbox" value="初级"/>初级</label>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题库类型：</label>
                            <div class="col-sm-8">
                                <input id="itemBankTypeHidden" th:value="${itemBank.itemBankType}"
                                       class="form-control" type="hidden">
                                <select id="itemBankType" name="itemBankType" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="0">练习题</option>
                                    <option value="1">考试题</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目类型：</label>
                            <div class="col-sm-8">
                                <input id="topicTypesHidden"  th:value="${itemBank.topicTypes}"
                                       class="form-control" type="hidden">

                                <select id="topicTypes" name="topicTypes" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="0">单选题</option>
                                    <option value="1">多选题</option>
                                    <option value="2">判断题</option>
                                    <option value="3">实操题</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目内容：</label>
                            <div class="col-sm-8">
                                <input id="topicContent" name="topicContent" th:value="${itemBank.topicContent}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">答案选项(请使用英文“;;”隔开每个选项)：</label>
                            <div class="col-sm-8">
                                <input id="options" name="options" th:value="${itemBank.options}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">正确答案(请使用英文“;;”隔开每个选项)：</label>
                            <div class="col-sm-8">
                                <input id="rightKey" name="rightKey" th:value="${itemBank.rightKey}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目解析(实操题在此处填写题目简介)：</label>
                            <div class="col-sm-8">
                                <textarea id="topicAnalysis" name="topicAnalysis" th:text="${itemBank.topicAnalysis}"
                                          class="form-control"></textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目资源类型：</label>
                            <div class="col-sm-8">
                                <input id="resoureTypesHidden"  th:value="${itemBank.resourceType}"
                                       class="form-control" type="hidden">
                                <select id="resourceType" name="resourceType" placeholder="请选择题目资源类型" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="0">文字</option>
                                    <option value="1">图片</option>
                                    <option value="2">视频</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group" style="display: none" id="resourse">
                            <label class="col-sm-3 control-label">资源重新上传：</label>
                            <div class="col-sm-8">
                                <button type="button" class="btn btn-success inp_1"
                                        style="margin-top: 20px;display: none" id="btnUpload">
                                    <i class="fa fa-cloud"></i>重新上传资源
                                </button>
                                <input type="text" style="opacity:0;width: 1px;" th:value="${itemBank.resourceUrl}"  id="fileRoute"
                                       name="fileRoute" />
                                <span id="test" name="test" th:text="${itemBank.resourceUrl}" style="display:block " ></span>
                            </div>
                        </div>


                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/itemBank/edit.js">
</script>
</body>
</html>
